<?php if(!empty($tgiachidoans)){?>
 <p>
	<?php
	$Paginator->option = array('url'=>array('action'=>'index',$khoahoc,$chidoan,$hocky));
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>
	<table cellpadding="0" cellspacing="0" id="tables">
	<tr>
			<th><?php echo 'STT';?></th>
			<th><?php echo 'Tên chi đoàn';?></th>
			<th><?php echo 'MSSV';?></th>
            <th><?php echo 'Họ tên';?></th>
			<th><?php echo $this->Paginator->sort('Ngày vào','Tgiachidoan.ngayvao');?></th>
			<th><?php echo $this->Paginator->sort('Ngày chuyển','Tgiachidoan.ngaychuyen');?></th>
			<th><?php echo 'Ghi nhận';?></th>
			<th><?php echo 'Nơi chuyển';?></th>
			<th class="actions"><?php __('Lựa chọn');?></th>
	</tr>
	<?php
	$i = 0; $stt=0;
	foreach ($tgiachidoans as $tgiachidoan):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $stt=$stt+1; ?>&nbsp;</td>
		<td>
			<?php echo $tgiachidoan['Chidoansv']['tenchidoan']; ?>
		</td>
		<td>
			<?php echo $tgiachidoan['Sinhvien']['mssv']; ?>
		</td>
        <td>
			<?php echo $tgiachidoan['Sinhvien']['hoten']; ?>
		</td>
		<td><?php echo $tgiachidoan['Tgiachidoan']['ngayvao']; ?>&nbsp;</td>
		<td><?php echo $tgiachidoan['Tgiachidoan']['ngaychuyen']; ?>&nbsp;</td>
		<td><?php echo $tgiachidoan['Tgiachidoan']['ghichu']; ?>&nbsp;</td>
		<td><?php echo $tgiachidoan['Tgiachidoan']['noichuyen']; ?>&nbsp;</td>
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $tgiachidoan['Tgiachidoan']['id'])); ?>
			<?php echo $this->Html->link(__('Cập nhật', true), array('action' => 'edit', $tgiachidoan['Tgiachidoan']['id'])); ?>
			<?php //echo $this->Html->link(__('Delete', true), array('action' => 'delete', $tgiachidoan['Tgiachidoan']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $tgiachidoan['Tgiachidoan']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	$this->Paginator->options = array('url'=>array('action'=>'index',$khoahoc,$chidoan,$namhoc,$hocky));
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
<?php }?>